function arglist = arch2cmd(master, type, bandwidth, components, mapper)
% arglist = arch2cmd(master, type, bandwidth, components, mapper)

arglist = [master ' ' type ' ' num2str(bandwidth)];
for c = components
  arglist = [arglist ' ' c.type ' ' num2str(c.freq) ' ' num2str(c.mem) ' ' ...
	     num2str(c.bandwidth)];
end
  
if nargin > 4
  arglist = [arglist ' ' mapper.type ' ' ...
	     num2str(mapper.delay) ...
	     ' ' num2str(mapper.maxtime) ' ' ...
	     num2str(mapper.avgtime) ' ' ...	   
	     num2str(mapper.avgsqtime) ' ' num2str(mapper.avgenergy) ...
	     ' ' num2str(mapper.avgresources)];
end
